
class XVODClientError(Exception):

    def __init__(self, msg: str, ori_exception: Exception = None) -> None:

        super().__init__(msg)
        self.ori_exception = ori_exception

class XVODAPIError(Exception):

    def __init__(self, code: str, message: str) -> None:
        super().__init__(f"code: {code}, message: {message}")
        self.code = code
        self.message = message

    def __str__(self) -> str:
        return f"XVODResultError(code={self.code}, message={self.message})"
